package com.dup.fastgpt.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class FastGptRequest {
    private String model; // 使用的模型ID
    private List<ChatMessage> messages;
    private String chatId; // 可选，继续现有会话
    private Boolean stream;
    private Double temperature;
    private Map<String, Object> parameters; // 其他参数
    private Map<String, Object> variables; // 全局变量参数

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ChatMessage {
        private String role;  // "system", "user" or "assistant"
        private String content;
    }
}
